package com.song.mongo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/5/17 0017
 * @time 10:06
 */
@RestController
@RequestMapping("/t1")
public class TestController {

      @GetMapping("/")
      public String test(@RequestParam(name = "name",required = false,defaultValue = "哈哈") String name, Integer age){
            System.out.println(name);
            System.out.println(age);
            return "ok";
      }
}
